﻿using Lcygcc.Domain.Service;
using Lcygcc.Infrastructure.Core;
using Lcygcc.Infrastructure.Logs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lcygcc.Domain.TaskServiceAdapter
{
    public class SyncPersonAdapter : ITaskWork
    {
        private readonly IPersonService mPersonService = null;

        public SyncPersonAdapter(IPersonService personService)
        {
            mPersonService = personService;
        }
        public void Execute(RequestArgs args)
        {
            mPersonService.GetPersonsByOracle();
            Logger.Info("----SyncPersonAdapter.人事查询成功-------");
        }
    }
}
